@extends('www/zc-666/layout')
@section('title',$activity->title)


@section('content')

    <div class="index">

        @include('/www/zc-666/web/ad')

        {{--外部盒子--}}
        <div class="main-content-box">

            <div class="manage-info-box">

                {{--头像与发起时间--}}
                @include('/www/zc-666/web/head',[
                    'img'=> '/' . $activity->manager_img,
                    'name'=> $activity->title,
                    'time'=>$activity->beginTime])

                {{--活动信息--}}
                @include('/www/zc-666/web/activity',[
                    'title' => '教导模式全球总裁联动班',
                    'day'   => $subTime[0],
                    'hour'  => $subTime[1],
                    'min'   => $subTime[2],
                    'sec'   => $subTime[3]
                ])

                {{--报名数据信息--}}
                @include('/www/zc-666/web/num', [
                    'k1' => '众筹费用',
                    'k2' => '报名人数',
                    'k3' => '支持人数',
                    'v1' => '￥' . $activity->money . '元',
                    'v2' => count($orders) . '人',
                    'v3' => $activity->supports_num . '人'
                    ])
            </div>

            {{--众筹者列表--}}
            <div class="people-list-box">
                <p class="title" style="text-align: center;">种子队友{{count($orders)}}人</p>
                @include('/www/zc-666/web/members',['ordersArr'=>$ordersArr, 'showAll' => false, 'showPercent' => true ])
            </div>
        </div>

        {{--显示所有用户--}}
        <div id="all-people" class="zhezhao hide" style="background-color: rgba(0,0,0,.6);">
            <div style="
        position: absolute;
        width:90%;
        height:90%;
        background:#fff;
        left:5%;
        top:5%;
        border-radius: 5vw;
        overflow: hidden;
        ">
                <div class="people-list-box" style="position:absolute;height: calc(100% - 15vw);width: 100%;overflow: scroll;">
                    @include('/www/zc-666/web/members',['ordersArr'=>$ordersArr, 'showAll' => true, 'showPercent' => true])
                </div>
                <p style="  position: absolute;
                    bottom: 0;
                    width:100%;
                    line-height:10vw;
                    text-align: center;
                    color:#fff;
                    background:#ee7624;"
                   onclick='$("#all-people").addClass("hide")'>关闭</p>
            </div>
        </div>

    </div>


    <script>
        window.onload = function()
        {
            // show_ppt("slidr-img");

            const title   = "{{$activity->share_title}}";
            const gTitle  = title;
            const link    = appRoot + "www/zhongchou666/index?activityId={{$activity->activity_id}}";
            const imgUrl  = appRoot + "{{$activity->share_img}}";
            const desc    = "{{$activity->share_desc}}";

            @if(is_online() && is_weixin())
            wx.config(<?php echo $weixinJs->config(array('onMenuShareAppMessage', 'onMenuShareTimeline'), false) ?>);
            wx.ready(function(){
                set_wx_share(title,gTitle,desc,imgUrl,link);
            });
            @endif
        }
    </script>
@endsection